

<div class="span12">

<form class="form-horizontal" method="post" name="profile"  enctype="multipart/form-data" target="actionfrm" action="/ajax/setprofile">


	 <?php if ($this->app == 1):?>
	  <div class="control-group">
	    <label class="control-label" for="">用户名</label>
	    <div class="controls">
	     	<input type="text" value="<?= $this->member[username] ?>" disabled="disabled" />
	    </div>
	  </div>
	  
	  <div class="control-group">
	    <label class="control-label" for="inputRealname">真实姓名</label>
	    <div class="controls">
	      <input type="text" id="inputRealname" value="<?= $this->list[realname]?>" name="realname" tabindex="1">
	    </div>
	  </div>

	  <div class="control-group">
	    <label class="control-label" for="inputGender">性别</label>
	    <div class="controls">
	    	<select class="ps" tabindex="2" name="gender">
				<option value="0" <?php if ($this->list[gender] == 0):?>selected<?php endif;?>>保密</option>
				<option value="1" <?php if ($this->list[gender] == 1):?>selected<?php endif;?>>男</option>
				<option value="2" <?php if ($this->list[gender] == 2):?>selected<?php endif;?>>女</option>
			</select>
	    </div>
	  </div>
      <div class="control-group">
      	<label class="control-label" for="inputIDno">身份证号</label>
      	<div class="controls">
      		<input type="text" id="inputIDno" placeholder="请输入您的身份证号" value="<?= $this->list[idno]?>" name="idno" tabindex="1" />
      	</div>
      </div>	

	  <?php endif;?>
	  <?php if ($this->app == 2):?>
	  
	  <div class="control-group">
	    <label class="control-label" for="inputPhone">手机号码</label>
	    <div class="controls">
	    	<input type="text" id="inputPhone" value="<?= $this->list[phone]?>" name="setphone" tabindex="3" />
	    </div>
	  </div>	 
	  
	  <div class="control-group">
	    <label class="control-label" for="inputEmail">E-mail</label>
	    <div class="controls">
	    	<input type="text" id="inputEmail" value="<?= $this->list[email]?>" name="setemail" tabindex="3" />
	    	<p>系统会向该邮箱发送了一封验证激活邮件，请查收邮件，进行验证激活。</p>
	    </div>
	  </div>
	  
	  	<div class="control-group">
		    <label for="inputanswer" class="control-label">安全提问</label>
			<div class="controls">
				<select name="question">
					<option value="0">无安全问题</option>
   				    <?php foreach ($this->question[question_arr] as $value):?>
    					<option value="<?= $value[id]?>" <?php if ($value[id] == $this->list[question]):?>selected="selected"<?php endif;?>><?= $value[name]?></option>
    				<?php endforeach;?>
				</select>
				<p>安全问题可用于快速找回密码等操作</p>
			</div>
		</div>
		<div class="control-group">
			<label for="inputanswer" class="control-label">安全回答</label>
			<div class="controls">
				<input type="text" name="answer" placeholder="请输入您的答案" id="inputanswer" tabindex="1" value="<?= $this->list[answer]?>" />
				<p>如您设置新的安全提问，请在此输入答案 </p>
			</div>
		</div>  
	  
	  <div class="control-group">
	    <label class="control-label" for="inputPassword"><em>*</em> 原密码</label>
	    <div class="controls">
	    	<input type="password" id="inputPassword" value="" name="setpassword" tabindex="3" />
	    	<p>您必须填写原密码才能修改此栏目的资料</p>
	    </div>
	  </div>	
	  
	  <div class="control-group">
	    <label class="control-label" for="inputNPassword">新密码</label>
	    <div class="controls">
	    	<input type="password" id="inputNPassword" value="" name="setnew_password" tabindex="3" />
	    	<p>如不需要更改密码，此处请留空 </p>
	    </div>
	  </div> 
	  <div class="control-group">
	    <label class="control-label" for="inputNPasswordA">确认新密码</label>
	    <div class="controls">
	    	<input type="password" id="inputNPasswordA" value="" name="setnew_password_again" tabindex="3" />
	    	<p>如不需要更改密码，此处请留空 </p>
	    </div>
	  </div>   
        <div class="control-group">
            
            <div class="controls">
                <a href="javascript:getCaptcha();" id="captcha" ><img src="/img/loading.gif" title="看不清? 点击换一张" alt="正在生成验证图片" /></a>
                <p><small><em>*</em> 输入您看到的字符 <a href="javascript:getCaptcha();">[换一张]</a></small></p>
                <input type="text" name="captcha" value="" placeholder="请输入验证字符" autocomplete="off" tabindex="1" />
            </div>
        </div>
	 
	  <?php endif;?>
	  <div class="control-group">
	    <div class="controls">
			<button class="btn btn-danger" type="submit" >保存</button>
	    </div>
	  </div>
	  <input type="hidden" value="<?= $this->app?>" name="app" />
	  <input type="hidden" value="<?= $this->ref?>" name="ref" />
</form>


</div>
        
        

        

